<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ page import="net.lwf.number.util.RandomNumberGenerator, net.lwf.web.constant.IWebConstant"%>

<%
   int numb = RandomNumberGenerator.generate(1, 6);
   String imagename = "thankyou" + String.valueOf(numb) + ".gif";
 %>
 
 <br><br>
  <table border="0" align="center" width="100%">
       <tr>
           <td align="center">
               <img src="<%=request.getContextPath()%>/image/thankyou/<%=imagename%>" border="0">
           </td>
       </tr>
       <tr>
           <td align="center">&nbsp;</td>
       </tr>
       <logic:present name="<%=IWebConstant.USER_NAME%>">
       <tr>
           <td align="center">
              <h2> <bean:write name="<%=IWebConstant.USER_NAME%>"/></h2>
           </td>
       </tr>
       <tr>
           <td align="center">&nbsp;</td>
       </tr>   
       </logic:present>                    
       <tr>
           <td align="center">
              <h4> Click <a href="<%=request.getContextPath()%>/home.do?action=home">here</a> to start again</h4>
           </td>
       </tr>                      
   </table>